<table>
    <thead>
        <tr>
	   	    <g:sortableColumn property="id" title="Id" titleKey="workflowStep.id" />
	   	    <th><g:message code="workflowStep.workflow" default="Workflow" /></th>
	   	    <g:sortableColumn property="serialNumber" title="Serial Number" titleKey="workflowStep.serialNumber" />
	   	    <g:sortableColumn property="name" title="Name" titleKey="workflowStep.name" />
	   	    <th><g:message code="workflowStep.assignee" default="Assignee" /></th>
	   	    <g:sortableColumn property="lockRecord" title="Lock Record" titleKey="workflowStep.lockRecord" />
        </tr>
    </thead>
    <tbody>
    <g:each in="${workflowStepInstanceList}" status="i" var="workflowStepInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td><g:link action="show" id="${workflowStepInstance.id}">${fieldValue(bean: workflowStepInstance, field: "id")}</g:link></td>
            <td>${fieldValue(bean: workflowStepInstance, field: "workflow")}</td>
            <td>${fieldValue(bean: workflowStepInstance, field: "serialNumber")}</td>
            <td>${fieldValue(bean: workflowStepInstance, field: "name")}</td>
            <td>${fieldValue(bean: workflowStepInstance, field: "assignee")}</td>
            <td><g:formatBoolean boolean="${workflowStepInstance.lockRecord}" /></td>
        </tr>
    </g:each>
    </tbody>
</table>